package com.whminwei.edu.api.dc.client;

import com.whminwei.common.feign.decoder.FullHttpRspnConfig;
import com.whminwei.common.http.rspn.FullHttpResponse;
import com.whminwei.edu.api.dc.dto.feq.CommonFeq;
import com.whminwei.edu.api.dc.dto.fspn.sso.DcLoginFspn;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author zhangjq
 * @since 2024-11-03
 */
@FeignClient(name = "xzzg-sso-service", contextId = "datacenter-sso", configuration = FullHttpRspnConfig.class)
public interface DcSsoClient {

    /**
     * 获取SSO登录记录信息
     *
     * @return com.whminwei.common.http.rspn.FullHttpResponse<com.whminwei.edu.api.dc.dto.fspn.sso.DcLoginFspn>
     * @author zhangjq
     * @since 2024-11-03
     */
    @PostMapping("/datacenter/getLoginInfo")
    FullHttpResponse<DcLoginFspn> getLoginInfo(CommonFeq feq);
}
